<?php

namespace App\Http\Validate\Steel;

use App\Http\Validate\BaseValidate;

/**
 * 权限组验证器
 */
class SteelArchive extends BaseValidate
{
    //验证规则
    protected $rule = [
        'archive_no' => 'required',
        'archive_name' => 'required',
        'archive_spec' => 'required',
        'type_id' => 'required',
        'subtype_id' => 'required',
        'breed_id' => 'required',
        'material_id' => 'required',
        'steel_factory_id' => 'required',
        'archive_type' => 'required',
    ];
    //自定义验证信息
    protected $message = [
        'archive_no.required' => '钢材编码不能为空',
        'archive_name.required' => '品名不能为空',
        'archive_spec.required' => '规格不能为空',
        'type_id.required' => '钢材分类未选择',
        'subtype_id.required' => '钢材子分类未选择',
        'breed_id.required' => '品种未选择',
        'material_id.required' => '材质未选择',
        'steel_factory_id.required' => '钢厂未选择',
        'archive_type.required' => '码单类型未选择',
    ];
}
